﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Modules;

namespace QuickApp.Core
{
    /// <summary>
    /// 注册服务到Ioc
    /// </summary>
    public class RegisterServices : NinjectModule
    {
        public override void Load()
        {
            Bind<IUnitOfWork>().To<UnitOfWork>().InRequestScope();
            Bind(typeof(IRepository<>)).To(typeof(EFRepository<>)).InRequestScope();
        }
    }
}
